package org.lboot.idmo.app.router;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.lboot.jpa.jpa.AbstractJpaCurdExt;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
@AllArgsConstructor
public class AuthAppRouteServiceImpl extends AbstractJpaCurdExt<Long, AuthAppRoute, AuthAppRouteDAO> implements AuthAppRouteService {
    @Override
    public List<AuthAppRoute> getByRoute(String route) {
        return dao.findByRoute(route);
    }

    @Override
    public List<AuthAppRoute> getByAppId(String appId) {
        return dao.findByAppId(appId);
    }
}
